package router

import (
	"github.com/gin-gonic/gin"
	"zg3/internal/api"
	"zg3/internal/middleware"
)

func GroupRouter(c *gin.RouterGroup) {
	groupRouter := c.Group("group").Use(middleware.Middleware())
	{
		groupRouter.POST("create", api.GroupCreate)
		groupRouter.POST("createDev", api.CreateDev)
		groupRouter.POST("createMember", api.CreateGroupMember)
		groupRouter.POST("delete", api.DeleteMember)
		groupRouter.POST("close", api.Close)
		groupRouter.POST("giveYou", api.GiveYou)
		groupRouter.POST("list", api.GroupList)
		groupRouter.POST("top", api.GroupTop)
		groupRouter.POST("noTop", api.GroupNoTop)
		groupRouter.POST("remark", api.CreateRemark)
	}
}
